package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseBelongOfficeContactMapper;
import com.ruoyi.base.domain.BaseBelongOfficeContact;
import com.ruoyi.base.service.IBaseBelongOfficeContactService;

/**
 * 属地应急联络;Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
@Service
public class BaseBelongOfficeContactServiceImpl implements IBaseBelongOfficeContactService 
{
    @Autowired
    private BaseBelongOfficeContactMapper baseBelongOfficeContactMapper;

    /**
     * 查询属地应急联络;
     * 
     * @param ID 属地应急联络;主键
     * @return 属地应急联络;
     */
    @Override
    public BaseBelongOfficeContact selectBaseBelongOfficeContactByID(String ID)
    {
        return baseBelongOfficeContactMapper.selectBaseBelongOfficeContactByID(ID);
    }

    /**
     * 查询属地应急联络;列表
     * 
     * @param baseBelongOfficeContact 属地应急联络;
     * @return 属地应急联络;
     */
    @Override
    public List<BaseBelongOfficeContact> selectBaseBelongOfficeContactList(BaseBelongOfficeContact baseBelongOfficeContact)
    {
        return baseBelongOfficeContactMapper.selectBaseBelongOfficeContactList(baseBelongOfficeContact);
    }

    /**
     * 新增属地应急联络;
     * 
     * @param baseBelongOfficeContact 属地应急联络;
     * @return 结果
     */
    @Override
    public int insertBaseBelongOfficeContact(BaseBelongOfficeContact baseBelongOfficeContact)
    {
        return baseBelongOfficeContactMapper.insertBaseBelongOfficeContact(baseBelongOfficeContact);
    }

    /**
     * 修改属地应急联络;
     * 
     * @param baseBelongOfficeContact 属地应急联络;
     * @return 结果
     */
    @Override
    public int updateBaseBelongOfficeContact(BaseBelongOfficeContact baseBelongOfficeContact)
    {
        return baseBelongOfficeContactMapper.updateBaseBelongOfficeContact(baseBelongOfficeContact);
    }

    /**
     * 批量删除属地应急联络;
     * 
     * @param IDs 需要删除的属地应急联络;主键
     * @return 结果
     */
    @Override
    public int deleteBaseBelongOfficeContactByIDs(String[] IDs)
    {
        return baseBelongOfficeContactMapper.deleteBaseBelongOfficeContactByIDs(IDs);
    }

    /**
     * 删除属地应急联络;信息
     * 
     * @param ID 属地应急联络;主键
     * @return 结果
     */
    @Override
    public int deleteBaseBelongOfficeContactByID(String ID)
    {
        return baseBelongOfficeContactMapper.deleteBaseBelongOfficeContactByID(ID);
    }
}
